from django.urls import path, include
from rest_framework.routers import DefaultRouter

from apps.lookups.calendars.views import CalendarTypeViewSet, GenerateCalendarApi, ExtendCalendarApi, CalendarApi

calendars_router = DefaultRouter()
calendars_router.register('type_list', CalendarTypeViewSet, basename='Calendar Type Api')

calendars_urlpatterns = [
    path('', include(calendars_router.urls)),
    path('generate_calendar/', GenerateCalendarApi.as_view()),
    path('extend_calendar/', ExtendCalendarApi.as_view()),
    path('calendar/', CalendarApi.as_view()),
]
